<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<head>
    <meta charset="UTF-8">
    <title>考试记录</title>
    <style>
        #tab{
            width: 80%;
            padding-left: 250px;
        }
    </style>
</head>
<body>
    <h2 style="text-align: center; color: #00aced">考试记录</h2>
    <table id="tab">
        <tr>
            <td>序号</td>
            <td>试卷名称</td>
            <td>试卷类型</td>
            <td>状态</td>
            <td>做题时间</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${examrecord}" var="e">
        <tr>
            <td>${e.exam_record_id}</td>
            <td>${e.exam_name}</td>
            <td>${e.exam_type}</td>
            <td>${e.exam_zt}</td>
            <td>${e.exam_time}</td>
            <c:choose>
                <c:when test="${e.exam_zt=='已交卷'}">
                    <td><a href="/examproject/stu/detailpage?exid=${e.exam_id}">查看试卷</a></td>
                </c:when>
                <c:when test="${e.exam_zt=='待交卷'}">
                    <td><a href="/examproject/stu/gettestcontent?exid=${e.exam_id}">继续答题</a></td>
                </c:when>
                <c:when test="${e.exam_zt=='已下架'}">
                    <td><a href="/examproject/stu/delrecords?exid=${e.exam_record_id}">删除</a></td>
                </c:when>
                <c:otherwise>
                    <td><a href="#">删除</a></td>
                </c:otherwise>
            </c:choose>
        </tr>
        </c:forEach>
    </table>
    <a href="/examproject/nologin/index.jsp">返回首页</a>
</body>
</html>